package chapter_23;

/**
 * Created by Administrator
 * Created time 2018/8/9 13:12.
 */
public class ThreadTest {

    public static void main(String[] args) {
        // 获取主线程
        Thread thread = Thread.currentThread();
        System.out.println(thread.getName());

        System.out.println("新建状态: " + thread.getState());
    }

}
